import java.util.Scanner;

/**
 * @author 黄雄
 * @Description
 * @date 2019/11/8
 */
public class Demo6 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入姓名：");
        String name=sc.next();
        int sum=0;//初始化总和
        int num;
        for (int i=0;i<5;i++){
            System.out.println("请输入第"+(i+1)+"门课的成绩");
            num=sc.nextInt();
            sum+=num;
        }
        double avg=sum/(double)5;
        System.out.println(avg);
    }
}
